import { UserInfoList, Menu } from "@/types/interface";

export interface LoginParams {
    email: string;
    password: string;
}

export interface LoginResponse {
    errcode: number;
    message: string;
    token: string;
}

export interface UserInfo {
    errcode: number;
    message: string;
    id: number;
    name: string;
    role: string;
}

export interface ResetPasswordResponse {
    errcode: number;
    message: string;
}

export interface UserProfileResponse {
    errcode: number;
    message: string;
    data: {
        create_time: string;
        profile: UserInfoList;
    };
}

export interface MenuListResponse {
    errcode: number;
    message: string;
    data:{
        menuList: Menu[];
        title: string;
    }
}


